package com.atguigu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class JspController {

    @RequestMapping("/")
    @ResponseBody
    public String index() {
        return "index 首页";
    }

    @RequestMapping("/success")
    public String success() {
        return "success";
    }

}
